home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / wx_lib10.zoo / wx_full.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-01  |  417 b   |  25 lines

  1. #include <wx_lib.h>
  2.  
  3. /*
  4.  * This function sets the window to its declared full size.
  5.  */
  6. void    wx_full(ws)
  7. Window    *ws;
  8. {
  9.     /*
  10.      * Set the window.
  11.      */
  12.     wind_set(ws->hand,WF_CURRXYWH,ws->full.g_x,ws->full.g_y,
  13.             ws->full.g_w,ws->full.g_h);
  14.     /*
  15.      * Update all our GRECTs.
  16.      */
  17.     wx_get(ws);
  18.     ws->xpos = ws->minx;
  19.     ws->ypos = ws->miny;
  20.     /*
  21.      * Re-set our clipping rectangle.
  22.      */
  23.     wx_setclip(ws);
  24. }
  25.